# 笨办法学 Python 3
# 练习33：循环
# data: 2023.1.6

def while_loop(num):
    i = 0
    numbers = []

    while i < 6:
        print(f"At the top i is {i}")
        numbers.append(i)

        i = i + 1
        print("Numbers now:", numbers)
        print(f"At the bottom i is {i}")

    print("The numbers:")

    return numbers

numbers = while_loop(6)

for num in numbers:
    print(num)

